import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from "vue-router"
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/homePage"
  },
  {

    path: "/homePage",
    component: () => import("../jcxm/jiemain/homePage.vue"),
    children: [
      {
        path: "",
        component: () => import("../jcxm/jiemain/mainMap.vue")
      },
      {
        path: "/historicalData",
        component: () => import("../jcxm/jiemain/historicalData.vue")
      },
      {
        path: "/warningInformation",
        component: () => import("../jcxm/jiemain/warningInformation.vue")
      },
      {
        path: "/reportManagement",
        component: () => import("../jcxm/jiemain/reportManagement.vue")
      },
      {
        path: "/IoTPlatform",
        component: () => import("../jcxm/jiemain/IoTPlatform.vue")
      },
      {
        path: "/projectManagement",
        component: () => import("../jcxm/jiemain/projectManagement.vue")
      },
    ]
  },
]


const router = createRouter({
  history: createWebHistory(),
  routes
})
export default router

